<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ taglib uri="/WEB-INF/tld/ce.tld" prefix="ce" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/tax/cases/assit/";  //应用的地址名
String modifyActionName = path+request.getAttribute("REQUEST_PATH")+"?op=savejs";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>委托协查台账添加或编辑</title>
<script type="text/javascript">
<!--
           $(function(){
              /*
               $('#vcName').validatebox({
                   required:'true',
                   missingMessage:'必须输入名称',
                   validType:'length[1,100]'
               });
               */
	           //点击添加按钮操作
			   $('#addBtn').click(function(){
				   $('#assitTypeName').val($('#assitTypeNum option:selected').text());
                   $('#editForm').submit();
	            });
	            //表单验证及提交处理操作
	           $('#editForm').form({
			        url:'<%=modifyActionName%>',
			        onSubmit: function(){
			           if($(this).form('validate')){
			                 $.util.showLoading();
			                 $('#operateWindow').window('close');
                            return true;
			             }else{
			                return false;
			             }
			        },
			        success:function(data){
			            $.util.removeLoading();
                        returnOptMsg(data);
			        }
				});
	            
           });
//-->
</script>
  </head>
  
  <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" >
    <s:form action="editForm" method="post">
      <s:hidden name="po.vcId"/>
      <s:hidden id="assitTypeName" name="po.assitTypeName"/>
	<table align="center" class="tb_add_th" width="100%">
		<tr><th width="160px">协查类型:</th><td><ce:dictSelect id="assitTypeNum" name="po.assitTypeNum" dictName="协查管理-协查类型" blankOption="true" style="width:150px;"/></td>
		    <th width="160px">委托协查函号:</th><td><s:textfield id="entrustCode"  name="po.entrustCode" style="width:150px;"/></td>
		</tr>
		<tr><th>发起协查单位及部门:</th><td><s:textfield id="startDept"  name="po.startDept" style="width:150px;"/></td>
		    <th>受托税务机关:</th><td><s:textfield id="assitTax"  name="po.assitTax" style="width:150px;"/></td>
		</tr>
		<tr><th>纳税人识别号:</th><td><s:textfield id="taxpayerNumber"  name="po.taxpayerNumber" style="width:150px;"/></td>
		    <th>涉及企业名称:</th><td><s:textfield id="involvedEnterprice"  name="po.involvedEnterprice" style="width:150px;"/></td>
		</tr>
		
		<tr><th>委托单位:</th><td><s:textfield id="entrustDeptId"  name="po.entrustDeptId" style="width:150px;"/></td>
		    <th>所属征管局:</th><td><s:textfield id="collectionDeptId"  name="po.collectionDeptId" style="width:150px;"/></td>
		</tr>
		<tr><th>发票份数:</th><td><s:textfield id="billCount"  name="po.billCount" style="width:150px;"/></td>
		    <th>金额:</th><td><s:textfield id="amountMoney"  name="po.amountMoney" style="width:150px;"/></td>
		</tr>
		<tr><th>税额:</th><td><s:textfield id="taxMoney"  name="po.taxMoney" style="width:150px;"/></td>
		    <th>是否市内协查:</th><td><s:radio list="#{1:'是',0:'否'}" name="po.isCity" /></td>
		</tr>
		<tr><th>协查事由:</th><td colspan="3"><s:textarea id="assitReason"  name="po.assitReason" label="协查事由" style="width:400px;"/></td></tr>
	</table>    
   </s:form>
  </body>
</html>

